<?php

namespace app\common\model\tyyh;

class GroupBuyingPromotion extends CUBase {
	protected $append = ['status_text'];
	protected $statusEnum = 'GroupBuyingPromotionStatus';

	//获取佣金的相关订单信息
	public function getUserOrderAttr($value, $data) {
		return loadModel('jy\\Order')->find($data['oid'])->append(['products', 'spread_user']);
	}
}